package com.mk.service;

import com.mk.base.service.IBaseService;
import com.mk.model.entity.Pac;
import com.mk.model.request.PacRequest;

import java.util.List;

/**
 * @Author: yq
 * @Description:
 * @Date: Created in 2:24 PM 3/15/18
 */
public interface IPacService extends IBaseService<Pac> {

    Pac savePac(PacRequest request);

    Boolean updatePac(PacRequest request);

    Boolean deletePac(Long id);

    Pac saveOnlyOne(PacRequest request);

    Boolean deletePacsByDirId(Long dirId);

    Boolean movePac(PacRequest request);

    Pac get(Long id);

    List<Pac> getByDirId(Long dirId);

    Pac getByTagNum(String num);

    List<Pac> keySearch(String key);
}
